package com.hefeng.mapper;

import com.hefeng.domain.Unit;
import org.springframework.stereotype.Repository;
import java.util.List;


@Repository
public interface UnitMapper {
    /**
     * 添加
     * @param unit
     * @return
     */
    int insertUnit(Unit unit);


    /**编写动态SQL实现分页查询+条件查询
    查询满足条件的某一页用户
     */
    List<Unit> selectPageWithParam(Integer startIdx, Integer size, String unitCode, String unitCreditCode, String unitDetachmentName);

    //查询满足条件的所有用户数
    int selectTotalWithParam(String unitCode, String unitCreditCode, String unitDetachmentName);
}
